package com.demo.passenger.sys.role.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.passenger.sys.role.entity.SysRolePermission;
import com.demo.passenger.sys.role.mapper.SysRolePermissionMapper;
import com.demo.passenger.sys.role.service.ISysRolePermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author weifucheng
 * @since 2019-07-13
 */
@Service
public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionMapper, SysRolePermission> implements ISysRolePermissionService {
@Override
    public List<SysRolePermission> listByParams(Page<SysRolePermission> page, SysRolePermission SysRolePermission) {
        return this.baseMapper.listByParams(page,SysRolePermission);
    }
    @Override
    public List<SysRolePermission> listByParams(SysRolePermission SysRolePermission) {
        Page<SysRolePermission> page=new Page<SysRolePermission>();
        page.setSize(Integer.MAX_VALUE);
        return this.baseMapper.listByParams(page,SysRolePermission);
    }
}
